package com.nuoniu.sibanyun.entity.check;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 质检管理_明细
 * </p>
 *
 * @author 白强
 * @since 2021-07-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("qu_check_detail")
@ApiModel(value="VQualityCheckDetail对象", description="质检管理_明细")
public class VQualityCheckDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "租户名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "账套ID")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "主表ID")
    @TableField("order_id")
    private Integer orderId;

    @ApiModelProperty(value = "物料id")
    @TableField("inventory_id")
    private Integer inventoryId;

    @ApiModelProperty(value = "物料名称")
    @TableField("inventory_name")
    private String inventoryName;

    @ApiModelProperty(value = "物料编码")
    @TableField("inventory_code")
    private String inventoryCode;

    @ApiModelProperty(value = "规格型号")
    @TableField("inventory_specification")
    private String inventorySpecification;

    @ApiModelProperty(value = "批号")
    @TableField("batch")
    private String batch;

    @ApiModelProperty(value = "工序ID")
    @TableField("procedure_id")
    private Integer procedureId;

    @ApiModelProperty(value = "工序名称")
    @TableField("procedure_name")
    private String procedureName;

    @ApiModelProperty(value = "加工顺序")
    @TableField("work_order")
    private Integer workOrder;

    @ApiModelProperty(value = "单计量ID")
    @TableField("unit_id")
    private Integer unitId;

    @ApiModelProperty(value = "计量单位组ID")
    @TableField("unit_group_id")
    private Integer unitGroupId;

    @ApiModelProperty(value = "主计量ID")
    @TableField("base_unit")
    private Integer baseUnit;

    @ApiModelProperty(value = "主计量名称")
    @TableField("base_unit_name")
    private String baseUnitName;

    @ApiModelProperty(value = "辅计量名称")
    @TableField("sub_unit_name")
    private String subUnitName;

    @ApiModelProperty(value = "辅计量ID")
    @TableField("sub_unit")
    private Integer subUnit;

    @ApiModelProperty(value = "换算率")
    @TableField("unit_exchange_rate")
    private BigDecimal unitExchangeRate;

    @ApiModelProperty(value = "辅助属性")
    @TableField("sub_properties")
    private String subProperties;

    @ApiModelProperty(value = "送检员ID")
    @TableField("carry_check_user_id")
    private Integer carryCheckUserId;

    @ApiModelProperty(value = "送检员姓名")
    @TableField("carry_check_user_name")
    private String carryCheckUserName;

    @ApiModelProperty(value = "报检数量(主计量）")
    @TableField("base_quantity")
    private BigDecimal baseQuantity;

    @ApiModelProperty(value = "检验数量")
    @TableField("checked_quantity")
    private BigDecimal checkedQuantity;

    @ApiModelProperty(value = "让步接收数量")
    @TableField("compromise_receive_quantity")
    private BigDecimal compromiseReceiveQuantity;

    @ApiModelProperty(value = "合格数量")
    @TableField("qualified_quantity")
    private BigDecimal qualifiedQuantity;

    @ApiModelProperty(value = "不合格数量")
    @TableField("unqualified_quantity")
    private BigDecimal unqualifiedQuantity;

    @ApiModelProperty(value = "返工数量")
    @TableField("rework_quantity")
    private BigDecimal reworkQuantity;

    @ApiModelProperty(value = "报检数量(辅)")
    @TableField("sub_quantity")
    private BigDecimal subQuantity;

    @ApiModelProperty(value = "检验数量(辅)")
    @TableField("sub_checked_quantity")
    private BigDecimal subCheckedQuantity;

    @ApiModelProperty(value = "让步接收数量(辅)")
    @TableField("sub_compromise_receive_quantity")
    private BigDecimal subCompromiseReceiveQuantity;

    @ApiModelProperty(value = "合格数量(辅)")
    @TableField("sub_qualified_quantity")
    private BigDecimal subQualifiedQuantity;

    @ApiModelProperty(value = "不合格数量(辅)")
    @TableField("sub_unqualified_quantity")
    private BigDecimal subUnqualifiedQuantity;

    @ApiModelProperty(value = "返工数量(辅)")
    @TableField("sub_rework_quantity")
    private BigDecimal subReworkQuantity;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "来源单据")
    @TableField("source_voucher_id")
    private Integer sourceVoucherId;

    @ApiModelProperty(value = "来源单据号")
    @TableField("source_voucher_code")
    private String sourceVoucherCode;

    @ApiModelProperty(value = "来源单据")
    @TableField("source_voucher_type")
    private String sourceVoucherType;

    @ApiModelProperty(value = "来源日期")
    @TableField("source_voucher_date")
    private LocalDate sourceVoucherDate;

    @ApiModelProperty(value = "来源明细ID")
    @TableField("source_detail_id")
    private Integer sourceDetailId;




}
